import Drawer from 'devextreme-react/drawer';

/**
 * 继承自 Dev的 Drawer 是因为直接使用会报错，render 也有问题，不知道为什么
 * @param props 
 * @returns 
 */
const AudDrawer: React.FC<any> = (props: any) => {
  const { opened, ...restProps } = props;
  return (
    <>
      <Drawer
        opened={opened}
        maskClosable={false}
        openedStateMode="push"
        position="right"
        revealMode="slide"
        {...restProps}
      />
    </>
  );
};

export default AudDrawer;